﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="contact.aspx.cs" Inherits="contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="css/style.css" rel="stylesheet" type="text/css" />
   
<script type="text/javascript" language="javascript">

    function validate() {
        var First_Name = document.getElementById('<%=firstName.ClientID %>').value;
        var User_Email = document.getElementById('<%=useremail.ClientID %>').value;
        var Message_Body = document.getElementById('<%=messageBody.ClientID %>').value;
        var email = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;

        var errormessage = "";

        if (First_Name == "First Name") {
            errormessage += "Please Enter Your Name\n";
        }

        if (User_Email == "Email") {
            errormessage += "Please Enter Email ID\n";
        }

        if (Message_Body == "Message") {
            errormessage  += "Please Enter Message\n";
        }


       

        if (errormessage != "") {
            alert(errormessage);
            return false;
        }

        var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/

        if (email == null) {
            alert("Your email address seems incorrect. Please try again.");
            return false;
        }

    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="contact">
    <div id="contact_form_left" >
<h1>Send us a message</h1>
<div id="form2" style="font-family:Tahoma;">

<asp:Label ID="lblmsg" runat="server" Font-Bold="true" ForeColor="Red" ></asp:Label ><br />
<input name="firstName" id="firstName" runat="server" type="text"  value="First Name" class="contact_name" style="font-family:Tahoma; font-size:15px;" /><br />&nbsp; <br />
<input name="useremail" id="useremail" runat="server" type="text" value="Email" class="contact_email" style="font-family:Tahoma; font-size:15px;" /><br />&nbsp;&nbsp;
<br />
<textarea name="message" id="messageBody" runat="server" class="contact_textarea" rows="10" cols="60" style="font-family:Tahoma; font-size:15px;" value="Message"></textarea><br /><br />

<asp:ImageButton  ID="btnsubmit" runat="server" 
    ImageUrl="~/images/contact_message_reg.png" onclick="btnsubmit_Click" OnClientClick="return validate();" />
<%--<input name="submit" type="submit" value="" />--%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        
        </div>
</div>

<div class="contact_form_line"> <img src="images/contact_form_line.png" alt=""  /> </div>
<div id="contact_form_right">
<h1>Call us</h1>
<h6>022-4266-1121</h6>
<p>We provide support 24/7. Please don't hesitate to call us if you experience any problems with our services or want more information about our products.</p>
</div>
</div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">


</asp:Content>


